<template>
  <div class="app-container">
    <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findData" />

    <el-card style="margin-top: 10px" shadow="always" :body-style="{ padding: '5px' }">
      <div>
        <h1>员工资料明细</h1>
        <Table :tableHeader="tableHeader" :tableData="tableData" :TableHeight="100" />
      </div>
      <PageModule :PageData="{ pageSizeShow: true }" />
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'AttendanceDataInquiryKl'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import type { formListType } from '@/components/Find/index.vue'
import { ref } from 'vue'

const formList = ref<any>([
  {
    type: 'button',
    checkboxLabel: '花名册导出'
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '部门',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'input',
    inputPlaceholder: '请输入姓名',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '性别',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'input',
    inputPlaceholder: '请输入身份证号',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '职务',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '工种',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '计件',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '进厂日期',
    dateValue: ''
  },
  {
    type: 'date',
    dateLabel: '离职日期',
    dateValue: ''
  },
  {
    type: 'date',
    dateLabel: '出生日期',
    dateValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入开户名',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入开户行',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入银行卡号',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入地址',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '签订合同',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '在职',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'button',
    checkboxLabel: '员工变更查询'
  },
  {
    type: 'input',
    inputPlaceholder: '',
    inputValue: '',
    inputLabel: '人数',
    inputDisabled: true
  }
])

const findData = () => {}

// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '部门名称',
    prop: 'slipNo'
  },
  {
    label: '工号',
    prop: 'slipDate'
  },
  {
    label: '姓名',
    prop: 'dutyDeptName'
  },
  {
    label: '性别',
    prop: 'sysUser'
  },
  {
    label: '身份证号',
    prop: 'dutyMemo'
  },
  {
    label: '出生日期',
    prop: 'dutyMemo'
  },
  {
    label: '职务',
    prop: 'dutyMemo'
  },
  {
    label: '工种',
    prop: 'dutyMemo'
  },
  {
    label: '计时/计件',
    prop: 'dutyMemo'
  },
  {
    label: '电话号码',
    prop: 'dutyMemo'
  },
  {
    label: '原地址',
    prop: 'dutyMemo'
  },
  {
    label: '进厂日期',
    prop: 'dutyMemo'
  },
  {
    label: '卡号用户',
    prop: 'dutyMemo'
  },
  {
    label: '开户行',
    prop: 'dutyMemo'
  },
  {
    label: '银行卡号',
    prop: 'dutyMemo'
  },
  {
    label: '合同签订',
    prop: 'dutyMemo'
  },
  {
    label: '学历',
    prop: 'dutyMemo'
  },
  {
    label: '名族',
    prop: 'dutyMemo'
  },
  {
    label: '婚否',
    prop: 'name',
    type: 'select'
  },
  {
    label: '紧急联络人',
    prop: 'dutyMemo'
  },
  {
    label: '紧急联系电话',
    prop: 'dutyMemo'
  },
  {
    label: '现地址',
    prop: 'dutyMemo'
  },
  {
    label: '成年',
    prop: 'name',
    type: 'select'
  },
  {
    label: '状态',
    prop: 'name',
    type: 'select'
  }
])

const handleSizeChange = (val: number) => {}
const handleCurrentChange = (val: number) => {}
</script>

<style lang="less" scoped>
h1 {
  font-size: 14px;
}
</style>
